class CreateExamParts < ActiveRecord::Migration
  def self.up
    create_table :exam_parts do |t|
      t.column "exam_id", :int, :null => false
      t.column "item_id", :int, :null => false
      t.column "question_no", :int, :null => false
      t.column "answer", :char
      t.timestamps
    end
  end

  def self.down
    drop_table :exam_parts
  end
end
